﻿namespace Rmq.Center
{
    public class OrderPayReverseMsg
    {
        /// <summary>
        /// 订单类型
        /// </summary>
        public OrderType OrderType { get; set; }

        /// <summary>
        /// 订单Id
        /// </summary>
        public int OrderId { get; set; }
    }

    public class OrderPayReverseProducer : BaseProducer<OrderPayReverseMsg>
    {
        public OrderPayReverseProducer()
            : base(Const.RoutingKeys.OrderPayReverse)
        { }
    }

    public class OrderPayReverseConsumer : BaseConsumer<OrderPayReverseMsg>
    {
        public OrderPayReverseConsumer()
            : base(Const.QueueNames.OrderPayReverse, Const.RoutingKeys.OrderPayReverse)
        { }
    }
}